<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>测试thymeleaf</title>
</head>
<body>
<h3>${name}</h3>
<hr/>
撒大苏打大撒大撒
<shiro:hasPermission name="user:add">
    用户添加功能:<a href="add">用户添加</a><br>
</shiro:hasPermission>
<shiro:hasPermission name="user:update">
用户编辑功能:<a href="update">用户编辑</a><br>
</shiro:hasPermission>
<shiro:hasPermission name="user:delete">
用户编辑功能:<a href="delete">用户删除</a><br>
</shiro:hasPermission>
撒旦撒旦
<a href="/shiro/logout">登出</a>
</body>
</html>